<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'detail';
$types=array(
	'0'=>'新闻列表',
	'1'=>'手册列表',
	'2'=>'公告列表',
	'3'=>'更新列表'
);
$return=array();
if($_RQ['op']=='detail'){
	$id=intval($_RQ['id']);
	if(!$id){
		exi('找不到指定文章！','error');
	}
	$return['groups']=array();
	$site=core_setting('site');
	$operating=core_setting('operating');
	$return['site']=$site;
	$return['operating']=$operating;
	$new= pdo_get('core_article',array('id'=>$id));
	$new['createtime']=date('20y-m-d H:i:s',$new['createtime']);
	$type=intval($new['type']);
	$return['groups'] = pdo_getall('core_article_group',array('type'=>$type),array('id','title'),'','paixu asc');
	$return['new'] = $new;
	$return['type'] = $type;
	set_html('header','common/header-cms');
	set_html('title',$new['title']);
	exi($return);
}
?>